package com.mapper;

import com.domain.Customer;
import com.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    Customer selectByPrimaryKey(Long id);

    List<Customer> selectAll();

    int updateByPrimaryKey(Customer record);

    List<Customer> selectForList(QueryObject qo);
    int updateSeller(@Param("customerId")Long customerId, @Param("sellerId")Long sellerId);

    void updateStatus(@Param("status")Integer status, @Param("id")Long id);
}